# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: csslayer <wengxt AT gmail com>

pkgname=fcitx5-sayura
pkgver=5.0.8
pkgrel=1
pkgdesc="Sinhala Transe IME engine for Fcitx5"
arch=('loong64' 'x86_64')
url="https://github.com/fcitx/fcitx5-sayura"
license=('GPL')
depends=('fcitx5')
makedepends=('extra-cmake-modules')
source=("https://download.fcitx-im.org/fcitx5/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
sha512sums=('9c55b425ea99e6c56516d36750a685055e1314cd8c6d5ce61a2871835f8da22756b45240bfbe52d39d16a1c6338e258b4a3da8bb02b084323ec498922ab09d4b'
            'SKIP')
validpgpkeys=('2CC8A0609AD2A479C65B6D5C8E8B898CBF2412F9') # Weng Xuetian <wengxt@gmail.com>

build(){
  cd $pkgname-$pkgver

  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib .
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
